package znbkTestPaperRdtz.api;

import com.example.lancooznbk.service.HttpGetServer;
import com.lancoo.rxretrofitlibrary.Api.BaseApi;
import com.lancoo.rxretrofitlibrary.Api.UserInfo;
import com.lancoo.rxretrofitlibrary.listener.HttpOnNextListener;
import com.trello.rxlifecycle.components.support.RxAppCompatActivity;

import retrofit2.Retrofit;
import rx.Observable;
import znbkTestPaperInfor.ZnbkPaperInfor;
import znbkTestPaperRdtz.ZnbkPaperRdtzInfor;

/**
 * Created by Administrator on 2018\3\14 0014.
 */

public class HeatPointExtensionPaperApi extends BaseApi {
    public HeatPointExtensionPaperApi(HttpOnNextListener listener, RxAppCompatActivity rxAppCompatActivity) {
        super(listener, rxAppCompatActivity);
    }

    @Override
    public Observable getObservable(Retrofit retrofit) {
        HttpGetServer httpGetServer = retrofit.create(HttpGetServer.class);
        return httpGetServer.getHeatPointExtensionPaperEntity(UserInfo.StuId,
                UserInfo.SubjectId,UserInfo.StageNo,ZnbkPaperRdtzInfor.ResID, ZnbkPaperRdtzInfor.Flag,true);
    }
}
